package com.text.day1_2;

import java.util.Scanner;

public class GouWu {
    public static void main(String[] args) {
        System.out.println("价格");
        Scanner scanner = new Scanner(System.in);
        double pri = scanner.nextDouble();
        System.out.println("积分");
        double jiFen = scanner.nextDouble();
        double zheKou;
        if (jiFen < 2000){
            zheKou = 0.9;
        } else if (jiFen < 4000){
            zheKou = 0.8;
        } else if (jiFen < 8000){
            zheKou = 0.7;
        } else {
            zheKou = 0.6;
        }
        System.out.println("实付" + pri * zheKou);
    }
}
